package com.pxst.merchant.service;

import com.pxst.internalReports.resp.DailBalanceSearchResp;
import com.pxst.merchant.entity.SysMerchantIncomeStatistics;
import com.pxst.merchant.req.MerchantDailyReportReq;
import com.pxst.merchant.req.MerchantSummaryReportReq;
import com.pxst.merchant.resp.MerchantDailyReportResp;
import com.pxst.merchant.resp.MerchantSummaryReportResp;
import com.pxst.resp.ApiResp;
import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zarke
 * @since 2023-09-18 15:17:15
 */
@Service
public interface SysMerchantIncomeStatisticsService extends JoinIService<SysMerchantIncomeStatistics> {

    //每日报表-搜索
    ApiResp<MerchantDailyReportResp> getDailyReport(MerchantDailyReportReq merchantIncomeReq);

    //代理收入总表-搜索
    ApiResp<MerchantSummaryReportResp> getSummaryReport(MerchantSummaryReportReq merchantIncomeReq);

    /**
     * @author Chrissy
     * @description 商户每日结算-搜索
     * @since 2023-11-13 19:35:42
     * @return
     */
    DailBalanceSearchResp searchDailyBalance(Integer year, Integer month, String currency, List<Long> merchantId);

    void downloadDailyBalance(Integer year, Integer month, String currency, List<Long> merchantId, HttpServletResponse response);
}